package com.dream.vo.api;

import java.io.Serializable;

import com.google.gson.Gson;

public class ApiOrderUpdate implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 9095614004065798649L;

	private Long id;
	
	private String proFirstCatCode;
	
	private String proSecondCatCode;
	
	private String proName;
	
	private String proPurchaseDate;
	
	private String proBarcode;
	
	private String proRecepitNo;
	
	private String proMandatoryNo;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getProFirstCatCode() {
		return proFirstCatCode;
	}

	public void setProFirstCatCode(String proFirstCatCode) {
		this.proFirstCatCode = proFirstCatCode;
	}

	public String getProSecondCatCode() {
		return proSecondCatCode;
	}

	public void setProSecondCatCode(String proSecondCatCode) {
		this.proSecondCatCode = proSecondCatCode;
	}

	public String getProName() {
		return proName;
	}

	public void setProName(String proName) {
		this.proName = proName;
	}

	public String getProPurchaseDate() {
		return proPurchaseDate;
	}

	public void setProPurchaseDate(String proPurchaseDate) {
		this.proPurchaseDate = proPurchaseDate;
	}

	public String getProBarcode() {
		return proBarcode;
	}

	public void setProBarcode(String proBarcode) {
		this.proBarcode = proBarcode;
	}

	public String getProRecepitNo() {
		return proRecepitNo;
	}

	public void setProRecepitNo(String proRecepitNo) {
		this.proRecepitNo = proRecepitNo;
	}

	public String getProMandatoryNo() {
		return proMandatoryNo;
	}

	public void setProMandatoryNo(String proMandatoryNo) {
		this.proMandatoryNo = proMandatoryNo;
	}
	
	public String toGson(){
		return new Gson().toJson(this);
	}
	
	public ApiOrderUpdate fromGson(String gson){
		return new Gson().fromJson(gson, ApiOrderUpdate.class);
	}
}
